public class Course {
    private String courseId; // 课程编号（唯一标识）
    private String courseName; // 课程名称
    private int credit; // 学分

    // 构造方法：初始化课程信息
    public Course(String courseId, String courseName, int credit) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.credit = credit;
    }

    // getter方法：获取属性值
    public String getCourseId() {
        return courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public int getCredit() {
        return credit;
    }
}